]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
st-theme-node: Clean up
authorJasper St. Pierre <jstpierre@mecheye.net>
Sat, 28 Jul 2012 07:49:14 +0000 (04:49 -0300)
committerJasper St. Pierre <jstpierre@mecheye.net>
Fri, 3 Aug 2012 15:27:20 +0000 (12:27 -0300)
Replace some faulty indentation, group some booleans to reduce
a bit of memory usage

https://bugzilla.gnome.org/show_bug.cgi?id=680801

src/st/st-theme-node-drawing.c
src/st/st-theme-node-private.h
src/st/st-theme-node.c

index 1ac3e39b431e9b1d209a713cb05b610c78cd778b..96df6f83d38c434a2c0a1ca65d21ff970431c3bf 100644 (file)
@@ -1477,7 +1477,6 @@ static void
 st_theme_node_paint_borders (StThemeNode           *node,
                              const ClutterActorBox *box,
                              guint8                 paint_opacity)
-
 {
   float width, height;
   int border_width[4];
index b6cd2a4dd5be8b359af5fa878b5b6ec7e575bfae..f31f1b8b564b2d66fc37be17be75fdbcd283928d 100644 (file)
@@ -45,7 +45,7 @@ struct _StThemeNode {
 
   int background_position_x;
   int background_position_y;
-  gboolean background_position_set : 1;
+
   StBackgroundSize background_size;
   gint background_size_w;
   gint background_size_h;
@@ -87,6 +87,8 @@ struct _StThemeNode {
   /* We hold onto these separately so we can destroy them on finalize */
   CRDeclaration *inline_properties;
 
+  guint background_position_set : 1;
+
   guint properties_computed : 1;
   guint geometry_computed : 1;
   guint background_computed : 1;
index 651de0240b4d6e1f09abf1c8b2e4f3795b90e43e..331b5d8a2f4d88bb4cae23f7f0fd0b8fe1b435c5 100644 (file)
@@ -1647,8 +1647,8 @@ _st_theme_node_ensure_background (StThemeNode *node)
             }
           else
             node->background_position_set = TRUE;
-            
-           result = get_length_from_term_int (node, decl->value->next, FALSE, &node->background_position_y);
+
+          result = get_length_from_term_int (node, decl->value->next, FALSE, &node->background_position_y);
 
           if (result == VALUE_NOT_FOUND)
             {